home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / var / db / pkg / sys-devel / gcc-3.3.6 / gcc-3.3.6.ebuild < prev    next >
Encoding:
Text File  |  2005-10-13  |  3.0 KB  |  92 lines

  1. # Copyright 1999-2005 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.6.ebuild,v 1.15 2005/10/07 02:01:56 eradicator Exp $
  4.  
  5. MAN_VER=""
  6. PATCH_VER="1.3"
  7. UCLIBC_VER="1.0"
  8. PIE_VER="8.7.8"
  9. PP_VER="1.0"
  10. HTB_VER="1.00-r1"
  11.  
  12. ETYPE="gcc-compiler"
  13.  
  14. # arch/libc configurations known to be stable with {PIE,SSP}-by-default
  15. SSP_STABLE="x86 sparc amd64"
  16. SSP_UCLIBC_STABLE="arm mips ppc x86"
  17. PIE_GLIBC_STABLE="x86 sparc amd64"
  18. PIE_UCLIBC_STABLE="x86 mips ppc"
  19.  
  20. # arch/libc configurations known to be broken with {PIE,SSP}-by-default
  21. SSP_UNSUPPORTED="hppa"
  22. SSP_UCLIBC_UNSUPPORTED="${SSP_UNSUPPORTED}"
  23. PIE_UCLIBC_UNSUPPORTED="alpha amd64 arm hppa ia64 m68k ppc64 s390 sh sparc"
  24. PIE_GLIBC_UNSUPPORTED="hppa"
  25.  
  26. # whether we should split out specs files for multiple {PIE,SSP}-by-default
  27. # and vanilla configurations.
  28. SPLIT_SPECS=${SPLIT_SPECS-true}
  29.  
  30. #GENTOO_PATCH_EXCLUDE=""
  31. #PIEPATCH_EXCLUDE=""
  32.  
  33. inherit toolchain eutils
  34.  
  35. DESCRIPTION="The GNU Compiler Collection.  Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking"
  36.  
  37. # ia64 - broken static handling; USE=static emerge busybox
  38. KEYWORDS="-* ~alpha ~amd64 ~hppa -ia64 ~sparc x86"
  39.  
  40. # NOTE: we SHOULD be using at least binutils 2.15.90.0.1 everywhere for proper
  41. # .eh_frame ld optimisation and symbol visibility support, but it hasnt been
  42. # well tested in gentoo on any arch other than amd64!!
  43. RDEPEND="|| ( app-admin/eselect-compiler >=sys-devel/gcc-config-1.3.10 )
  44.     >=sys-libs/zlib-1.1.4
  45.     !sys-devel/hardened-gcc
  46.     elibc_glibc? ( >=sys-libs/glibc-2.3.2-r9 )
  47.     >=sys-devel/binutils-2.14.90.0.6-r1
  48.     >=sys-devel/bison-1.875
  49.     amd64? ( multilib? ( >=app-emulation/emul-linux-x86-glibc-1.1 ) )
  50.     sparc? ( hardened? ( >=sys-libs/glibc-2.3.3.20040420 ) )
  51.     !build? (
  52.         gcj? (
  53.             gtk? ( >=x11-libs/gtk+-2.2 )
  54.             >=media-libs/libart_lgpl-2.1
  55.         )
  56.         >=sys-libs/ncurses-5.2-r2
  57.         nls? ( sys-devel/gettext )
  58.     )"
  59.  
  60. if [[ ${CATEGORY/cross-} != ${CATEGORY} ]]; then
  61.     RDEPEND="${RDEPEND} ${CATEGORY}/binutils"
  62. fi
  63.  
  64. DEPEND="${RDEPEND}
  65.     >=sys-apps/texinfo-4.2-r4
  66.     amd64? ( >=sys-devel/binutils-2.15.90.0.1.1-r1 )"
  67. PDEPEND="|| ( app-admin/eselect-compiler sys-devel/gcc-config )"
  68.  
  69. src_unpack() {
  70.     gcc_src_unpack
  71.  
  72.     if [[ -n ${UCLIBC_VER} ]] && is_uclibc ; then
  73.         mv ${S}/gcc-3.3.2/libstdc++-v3/config/os/uclibc ${S}/libstdc++-v3/config/os/ || die
  74.         mv ${S}/gcc-3.3.2/libstdc++-v3/config/locale/uclibc ${S}/libstdc++-v3/config/locale/ || die
  75.     fi
  76.  
  77.     # misc patches that havent made it into a patch tarball yet
  78.     [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
  79.     epatch "${FILESDIR}"/3.3.6/gcc-3.3.6-cross-compile.patch
  80.  
  81.     # Anything useful and objc will require libffi. Seriously. Lets just force
  82.     # libffi to install with USE="objc", even though it normally only installs
  83.     # if you attempt to build gcj.
  84.     if ! use build && use objc && ! use gcj ; then
  85.         epatch ${FILESDIR}/3.3.4/libffi-without-libgcj.patch
  86.         #epatch ${FILESDIR}/3.4.3/libffi-nogcj-lib-path-fix.patch
  87.     fi
  88.  
  89.     [[ $(tc-arch) == "amd64" ]] && \
  90.         replace-cpu-flags k8 athlon64 opteron i686
  91. }
  92.